package cn.ll.service;

import java.util.List;

import cn.ll.po.Permissions;
import cn.ll.po.PermissionsDAO;

public class PermissionsService {
	private PermissionsDAO permissionsDAO = null;

	public List<Permissions> findAll(){
		List<Permissions>  list = permissionsDAO.findAll();
		return list;
	}
	
	public void save(Permissions permissions){
		permissionsDAO.save(permissions);
	}
	
	public void update(Permissions permissions){
		permissionsDAO.update(permissions);
	}
	
	public Permissions findById(int id){
		Permissions permissions = permissionsDAO.findById(id);
		return permissions;
	}
	
	public PermissionsDAO getPermissionsDAO() {
		return permissionsDAO;
	}

	public void setPermissionsDAO(PermissionsDAO permissionsDAO) {
		this.permissionsDAO = permissionsDAO;
	}
}
